home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir27
/
kspin.zip
/
KSSPIN.DOC
< prev
next >
Wrap
Text File
|
1994-01-01
|
16KB
|
415 lines
TexaSoft's
KWIKSTAT Supplement Manual
Spin Plot, Data Visualization
3.3
(C)Copyright 1993 Alan C. Elliott
For additional information on this product, contact
TexaSoft, P.O. Box 1169, Cedar Hill, Texas 75104 (214)
291-2115, Fax: (214) 291-3400, Compuserve:70721,3145.
ACKNOWLEDGMENTS
Production team: Alan Elliott, Paul Witt, Carol Bigler,
Nancy Witt.
ALL RIGHTS RESERVED
All rights reserved. Printed in the United States of
America. No part of this book may be reproduced without
prior permission. For information, address TexaSoft, P.O.
Box 1169, Cedar Hill, Texas 75104. No patent liability is
assumed with respect to the use of the information
contained herein. While every precaution has been taken in
the preparation of this publication, the publisher assumes
no responsibility for errors or omissions. Neither is any
liability assumed for damages resulting from the use of the
information herein.
INSTALLATION
To install the KWIKSTAT SPIN module, you must have already
installed the KWIKSTAT BASIC edition. Then, place the SPIN
disk in drive A (or B). Make A (or B) the default drive by
Entering A: (or B:). Enter the command INSTALL, and follow
the instructions on the screen.
1
KWIKSTAT 3D Scatterplot/SPIN
----------------------------------------------------------
KWIKSTAT 3D DATA VISUALIZATION
SPIN PLOT
INTRODUCTION
The KWIKSTAT "SPIN" module allows you to interactively view
three dimensional scatter plots. The SPIN Graph menu
contains two parts, separated by a horizontal bar. The top
item allows you to choose to display the spin plot. The
bottom part of the menu allows you to choose other options,
including the ability to choose a database to open, edit
information in the currently opened database, select a
previously saved .GRF file to redisplay, and end the
program.
3-DIMENSIONAL INTERACTIVE SCATTER PLOTS
The Three Dimensional Interactive Scatter Plot (Spin plot)
allows you to visualize your data, rotate the plot along the
x, y, or z axes, spin the data, and choose other display
options. When you choose the 3D XYZ Data visualization plot
option from the SPIN Plot menu, you are prompted to choose
three numeric fields.
These three fields should contain the three numeric
variables whose relationship you wish to view. You may also
optionally choose a grouping variable. When a grouping
variables is used, the points on the plot will be displayed
where points for each different group (up to 10 groups) will
appear in different colors or points for different groups
will be displayed using a different shaped point (such as a
circle, square, diamond, etc.) Once you have chosen the
fields, an initial plot appears.
The plot in this figure is displaying information from the
CAR.DBF database, using the fields MPG, WEIGHT and HP and
the grouping field CYLINDERS. Options (menu on the right)
available for the Spin plot are Manually rotate the plot
(up-, down-, left- and right-arrow, PgUp and PgDn keys) by
choosing Roll, Pitch or Yaw. Either point to one of these
options with the mouse and click, or press the designated
keyboard button to choose one of these options.
Automatically spin the plot by pressing CTRL, plus a Roll,
2
KWIKSTAT 3D Scatterplot/SPIN
----------------------------------------------------------
Pitch or Yaw button (i.e., CTRL-rightarrow). Stop the
spinning plot by pressing a Roll, Pitch or Yaw button
(without CTRL). Select a Grow or Shrink (+ or -) option to
cause the points in the plot to expand from the center of
the plot, or contract toward the center of the plot. Select
to increase or decrease (>> or <<) the degree of each move.
This is particularly useful to control the speed of a
spinning plot. Select Home to return the plot to its home
Roll, Pitch and Yaw position, and to return the degree move
to its default value.
At the top of the plot is a menu bar containing the following
options:
o Exit the plot
o Print the plot to the printer. (If supported on your
computer)
o Cap/PCX - Capture the plot as a PCX file. (This option
only works in EGA and VGA modes)
o Get colors - displays another menu -- which allows you to
choose to display the plot in black and white or choose
other colors for the background, graph and text and return
to the main plot menu.
o Display Help.
o Display the options menu.
If you choose the Option menu from the main Spin plot menu
bar, a pick menu is displayed. The options menu has a number
of options you can choose. If an option is currently chosen,
a check will appear a the left of the option name. You can
select several options from the menu. Once you have chosen
the options you want, exit from the menu, and the plot will
be displayed using the selected options. From the options
menu, you may select these items:
A) Display points with rays originating from the center of the
plot.
B) Display x, y, z axes.
C) Display a box around the points.
D) Display points as small dots
3
KWIKSTAT 3D Scatterplot/SPIN
----------------------------------------------------------
E) Display points a circles.
F) Display points as patterns (each group a different pattern)
G) Display rays within a box
H) Save the plot as a GRF file (to be replayed later).
I) Define a PRINT/PCX title for plot
X) Exit the options menu.
Sometimes when you choose an option, that selection will
automatically select or deselect another option. For
example, if you choose to Display rays with a box, the
"Display a box around the points" is also automatically
selected, and the "Display x,y,z, axes" option is
automatically deselected.
If you want to replay the plot later, first display the plot
using all of the options you want to save, then choose the
"Save the plot as a GRF file" option. See the next section
about redisplaying the plot from the GRF file.
DISPLAYING A "3-D SCATTERPLOT" .GRF PLOT FROM DOS
Once you have saved a .GRF plot description, you can redisplay
this plot from the DOS prompt by using the
command
KS3SPIN filename
where filename is the name of a file (filename.GRF) that was
previously saved. The plot displayed will read the
information from the database originally used to create the
plot, and will display the plot including any options that
where chosen when the plot was originally displayed.
This allows you to quickly display a plot you often need to
view, using .DBF file data that is updated periodically. For
example, if you need to view a plot from data that is
collected daily, weekly, etc. you can define the plot once
and save it as a .GRF file. Then, when the dBASE (.DBF)
file is updated, you can enter the command described above
to display the plot from the new data.
Sometimes, you may not want to retain all of the options you
have chosen from when the originally .GRF plot was created.
You can choose to tell the program to revert to default
values for the plot by using the /D option in the command.
4
KWIKSTAT 3D Scatterplot/SPIN
----------------------------------------------------------
For example, the command
KS3SPIN filename /D
will cause the .GRF file to be display as a default 3-D
scatterplot. You can control which defaults will be used by
placing a colon ":" and a code after the D in the /D option.
Each code (except one) is a 0 or 1, meaning 1= display the
selected item and 0=do not display the item. There are 8
codes. Here are their meanings:
o Code 1 = Display rays from origin
o Code 2 = Display x,y and z axes
o Code 3 = Display large box around data
o Code 4 = Display points as dots
o Code 5 = Display points as circles
o Code 6 = Display points as patterns
o Code 7 = Display rays from the z-plane
o Code 8 = Spin the plot (can be 0,1,2,3,4,5 or 6)
The code 8 options are defined as follows:
o 0 = No spin
o 1 = Roll +
o 2 = Roll -
o 3 = Pitch +
o 4 = Pitch -
o 5 = Yaw +
o 6 = Yaw -
For example, to display a plot named MYPLOT.GRF using all the
values as saved, you would use the command:
KS3SPIN MYPLOT
To display this plot, reverting to all defaults, you could
use the command:
KS3SPIN MYPLOT /D
To display this plot with dots as patterns, you could use the
command:
KS3SPIN MYPLOT /D:01000100
5
KWIKSTAT 3D Scatterplot/SPIN
----------------------------------------------------------
Another option available on the command line is /P. This
allows you to cause the plot to automatically print once
displayed. For example, to display MYPLOT, and automatically
print the plot, use the command:
KS3SPIN MYPLOT /P
EXAMPLE SPIN PLOT
The purpose of the Spin plot is to allow you to see your
data in a way that is not possible using a two dimensional
scatterplot. As an example, open the database file named
CAR, and select the following three fields for analysis:
2) MPG (Miles Per Gallon)
6) Weight (Weight of the Car)
5) HP (Horsepower)
For the grouping variable, choose
3) Cylinders
From the DOS prompt, you can display this plot (from a GRF
save file) by entering the command
DEMOSPIN
Or, you can manually create the plot from the Spin Plot
menu, by opening the CAR database and choosing the fields
MPG, WEIGHT and HP and the grouping variable CYLINDERS. The
initial plot that appears for this dataset was shown earlier
in figure S.3. To examine the relationships between the
variables, you should spin the plot on one or more axis to
view the relationships from different angles.
The menu items at the right of the screen control the spin
plot. To access one of these items, either press command key
indicated (i.e. press the "Home" key on your keyboard to
reset the spin axes to their original position) or point to
one of the menu items with the mouse pointer and click. To
spin the plot, press the Ctrl key plus one of the six
direction keys. To stop the spin, press one of the direction
keys.
You might also want adjust the scale of the plot by pressing
6
KWIKSTAT 3D Scatterplot/SPIN
----------------------------------------------------------
the + or - key (or clicking with the mouse). The scale of
the plot is designed so that the mean of each variable is
located at the intersection of the X, Y and Z axes.
Since there is a grouping variable (Cylinders), datapoints
for each group appear in a unique color. If you are using a
monochrome monitor, or if you want to print the graph, you
will probably want to display the points using patterns. To
do this, choose <Options> from the top menu. You can choose
other options as you wish. When you exit the options menu,
the plot will be redisplayed using the options you have
chosen. The 3D Spin Options pick menu appears.
From the options menu, choose to display the points as
patterns, then choose to Exit this option, and the spin plot
will be redisplayed.
Display the CAR data with groups as patterns, and with the
axes tilted to show all three variables. From this angle,
you should be able to see that the larger cars (8 cylinder
cars are shown with an "X" symbol at the upper right of the
plot. This plot shows you that these large cars are at the
high end of the Y (Weight) variable, at the high end of the
Z (horsepower) variable and at the low end of the X (MPG)
variable. This is not a surprizing result, but it
illustrates how you can see patterns in the plot. You can
also see the clouds of points by grouping variable, showing
that this variable is a critical factor in determining miles
per gallon. That is, the fewer the number of cylinders (in
general) the higher the miles per gallon.
7